package com.it.chinasoft.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


/**
 *  添加注解 https://blog.csdn.net/Honnyee/article/details/90447767
 */
@Configuration
@ConfigurationProperties(prefix = "my.config")
public class MyConfig {

    /**
     * 静态文件路径
     */
    private String staticLocation;

    public String getStaticLocation() {
        return staticLocation;
    }

    public void setStaticLocation(String staticLocation) {
        this.staticLocation = staticLocation;
    }

}
